FROM alpine:3.20.2

LABEL authors="xincan"

ENV VERSION=2.0.2

# 将压缩文件从构建上下文复制到镜像中
COPY nerdctl-${VERSION}-linux-amd64.tar.gz /builder/

WORKDIR /builder/

RUN tar -xzvf nerdctl-${VERSION}-linux-amd64.tar.gz -C /usr/local/bin \
    && rm -rf nerdctl-${VERSION}-linux-amd64.tar.gz